home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // BlazeClass
- //
-
- #ifndef __BCPLUSPLUS__
- #pragma inline
- #endif
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #define I asm
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // CopyFromTo()
- //
- // Copy a text region from a virtual screen to another virtual screen
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void BlazeClass::CopyFromTo(int X,int Y,int Width,int Height,void far *FROM,
- void far *TO)
- {
- if (Width<1 || Height<1)
- return;
-
- int ScreenWidth = BlazeClass::QuickWidth;
-
- I push ds
-
- I lds si,FROM
- I les di,TO
-
- _DX = ((Y*ScreenWidth)+(X*2));
- _SI += _DX;
- _DI += _DX;
-
- I mov bx,[Width]
- I mov dx,[Height]
-
- I cld
-
- looped:
-
- I push si
- I push di
- I mov cx,bx
-
- I rep movsw
-
- I pop di
- I pop si
- I add si,ScreenWidth
- I add di,ScreenWidth
- I dec dx
- I or dx,dx
- I jne looped
-
- I pop ds
- }
-
-
-